<template>
  <div>
    <cpn click="alert(123456)" :name="name" :age="age"></cpn>
    <el-button type="primary" size="default" @click="change()">修改显示内容</el-button>
    
  </div>
</template>

<script>
import Cpn from '@/views/demo/component-import/Cpn.vue';

export default {
  components: {
    Cpn
  },
  data() {
    return {
      name: 'haha',
      age: 20
    }
  },
  methods: {
    change() {
      this.name = 'haha2';
      this.age = 21;
    },
    cli() {
      console.log('我被点击了111');
    }
  },  
}
</script>

